package com.zmn.plat.manager.dictionary;

import com.zmn.plat.manager.constant.ZmnSmsConsts;

/**
 * 描述: 消息管理相关字典类
 *
 * @auther tanghongjun
 * @since 2019/10/22 10:00
 */
public class ZmnSmsDict {

    /**
     * 描述: 获取状名称
     *
     * @auther tanghongjun
     * @since 2019/10/22 10:18
     */
    public static String getErrorMsg(int flag) {
        switch (flag) {
            case ZmnSmsConsts.MSG_SEND_ERROR_GROUP_HIDDEN:
                return ZmnSmsConsts.MSG_SEND_ERROR_GROUP_HIDDEN_STR;
            case ZmnSmsConsts.MSG_SEND_CURRENCY_NONE_ERROR:
                return ZmnSmsConsts.MSG_SEND_CURRENCY_NONE_ERROR_STR;
            case ZmnSmsConsts.MSG_SEND_NO_OPENID_ERROR:
                return ZmnSmsConsts.MSG_SEND_NO_OPENID_ERROR_STR;
            case ZmnSmsConsts.MSG_NO_WEICHART_TEMPLATE_ID_ERROR:
                return ZmnSmsConsts.MSG_NO_WEICHART_TEMPLATE_ID_ERROR_STR;
            case ZmnSmsConsts.MSG_SEND_WEICHART_TERROR:
                return ZmnSmsConsts.MSG_SEND_WEICHART_TERROR_STR;
            case ZmnSmsConsts.MSG_NO_TEMPLATE_MESSAGE_ERROR:
                return ZmnSmsConsts.MSG_NO_TEMPLATE_MESSAGE_ERROR_STR;
            case ZmnSmsConsts.MSG_SEND_CN_TERROR:
                return ZmnSmsConsts.MSG_SEND_CN_TERROR_STR;
            case ZmnSmsConsts.MSG_SEND_ALI_TERROR:
                return ZmnSmsConsts.MSG_SEND_ALI_TERROR_STR;
            case ZmnSmsConsts.MSG_SEND_ZST_TERROR:
                return ZmnSmsConsts.MSG_SEND_ZST_TERROR_STR;
            case ZmnSmsConsts.MSG_SEND_WECHAT_NO_TOKEN:
                return ZmnSmsConsts.MSG_SEND_WECHAT_NO_TOKEN_STR;
            case ZmnSmsConsts.MSG_SEND_WECHAT_NO_APP_ID:
                return ZmnSmsConsts.MSG_SEND_WECHAT_NO_APP_ID_STR;
            case ZmnSmsConsts.MSG_SEND_BAIDU_FORM_ID_REPEAT:
                return ZmnSmsConsts.MSG_SEND_BAIDU_FORM_ID_REPEAT_STR;
            default:
                return ZmnSmsConsts.MSG_SEND_ERROR_STR;
        }
    }
}
